import * as utils from '@/utils/utils.js'
import store from '@/store/index.js'
let saveFilePath = '';

// 获取头环版本的命令
function getDeviceVersion(){
	let buffer = new ArrayBuffer(7);
	let dataView = new DataView(buffer);
	datView.serUint8(0,0x68);
	datView.serUint8(0,0x00);
	datView.serUint8(0,0x07);
	datView.serUint8(0,0x10);
	datView.serUint8(0,0x47);
	datView.serUint8(0,0x3a);
	datView.serUint8(0,0x16);
	getApp().writeBLECharacteristicValue(buffer);
}
function downloadFile() {
	let that = this;
	uni.downloadFile({
		URL:'https://xch.jseihc.com/public/platform/headband_dfu_packet/EI-B100_DFU.zip',
		success(res){
			console.log('download success>>>' , res);
		}
	})
}